package com.ruoyi.face.domain;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;
import java.util.List;

public class BatchDel {

    @JsonProperty(value = "person_list")
    private List<Item> items;

    public List<Item> getItems() {
        return items;
    }

    public void setItems(List<Long> ids) {
        items = new ArrayList<>(ids.size());
        ids.forEach(id -> items.add(new Item(id)));
    }

    class Item {
        private Long id;

        public Item(Long id) {
            this.id = id;
        }

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }
    }
}
